cmake_minimum_required(VERSION 3.5 FATAL_ERROR)

project(recipe-02 LANGUAGES CXX)

add_library(message STATIC Message.cpp Message.hpp)         # 编译生成静态库
add_executable(hello-world hello-world.cpp)
target_link_libraries(hello-world message)                  # 链接静态库